/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;

import java.util.List;
import java.util.Map;

/**
 * bdf结构化信息实体类
 */
@Data
public class IsfdMeshModelBdfParseInfo {
    /**
     * id
     */
    @Id
    private ObjectId _id;

    /**
     * 文件名称
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileName;

    /**
     * 状态
     * 0: 初始化， 1: 结构化中， 2: 结构化成功， 3: 结构化失败
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer status;

    /**
     * 文件地址
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String fileUrl;

    /**
     * 表名
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String collectionName;

    /**
     * 卡片数据统计
     */

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer totalCount;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Map<String, Integer> cardCount;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<String> includeStatements;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String failedMessage;
}
